package com.struct.graph.login
{
	import com.collection.FactoryCollection;
	
	import flash.display.DisplayObjectContainer;
	import flash.events.MouseEvent;
	
	import sacu.s.FactoryEvent;
	import sacu.s.worker.GraphWorker;
	
	public class LoginPanelGraphWorker extends GraphWorker
	{
		private var _base:LoginPanel;
		public function LoginPanelGraphWorker(id:String, base:DisplayObjectContainer)
		{
			super(id, base);
			_base = base as LoginPanel;
			_base.login.addEventListener(MouseEvent.CLICK, loginHandler);
		}
		private function loginHandler(e:MouseEvent):void{
			FactoryCollection.hall.startFactory();
			factory.disposeFactory();
		}
		override public function handleAction(action:FactoryEvent):void{
			switch(action.type){
				
			}
		}
	}
}